const routeName = 'login'
const login = [
  {
    path: '/login',
    component: () => import('@/views/login/index'),
    redirect: '/login/verify',
    name: 'Login',
    children: [
      {
        path: 'register',
        component: () => import('@/views/login/components/loginRegister'),
        name: `${routeName}_register`,
        meta: { title: '注册', needLogin: false }
      },
      {
        path: 'account',
        component: () => import('@/views/login/components/loginAccount'),
        name: `${routeName}_account`,
        meta: { title: '账号登录', needLogin: false }
      },
      {
        path: 'verify',
        component: () => import('@/views/login/components/loginVerify'),
        name: `${routeName}_verify`,
        meta: { title: '验证码登录', needLogin: false }
      },
      {
        path: 'pwd',
        component: () => import('@/views/login/components/loginPwd'),
        name: `${routeName}_password`,
        meta: { title: '找回密码', needLogin: false }
      }
    ]
  },
  {
    path: '/thirdlogin',
    component: () => import('@/views/login/components/thirdlogin'),
    name: 'thirdlogin',
    meta: { title: '三方登录', needLogin: false }
  }
]

export default login
